CommandDeselect Class Reference

#include <CommandDeselect.h>

Inheritance diagram for CommandDeselect:

Command List of all members.

Public Member Functions

 CommandDeselect (TraffEduObject *obj, OSGWindows *osgwind)
bool execute ()
bool unexecute ()
void changeState ()
void changeStateReverse ()

Private Attributes

OSGWindows * osgwind_
vector< TraffEduObject * > deselectedObjs_
osg::StateSet * stateset

Constructor & Destructor Documentation

CommandDeselect::CommandDeselect (  TraffEduObject *  obj,
OSGWindows *  osgwind
) 
 

A constructor. Initializes osgwind_ variable and drop the deselected object from the selected object list.

Parameters:
obj a TraffEduObject pointer.
osgwind an OSGWindows pointer.


Member Function Documentation

void CommandDeselect::changeState (   ) 
 

highlight the seleted objects in the environment.

void CommandDeselect::changeStateReverse (   ) 
 

un_highlight the selected objects in the environment.

bool CommandDeselect::execute (   )  [virtual]
 

do the deselection operation.

Returns:
Operation success

Implements Command.

bool CommandDeselect::unexecute (   )  [virtual]
 

undo the deselection operation.

Returns:
Operation success

Implements Command.


Member Data Documentation

vector<TraffEduObject*> CommandDeselect::deselectedObjs_ [private]
 

a private vector of TraffEduObjects. It holds the deselected objects.

OSGWindows* CommandDeselect::osgwind_ [private]
 

a private variable. It is initialized with the unique OSGWindows instance.

osg::StateSet* CommandDeselect::stateset [private]
 

a private osg::StateSet pointer. It holds state of the selected/deselected objects.


The documentation for this class was generated from the following file:
Generated on Sun May 28 18:44:00 2006 by  doxygen 1.4.6-NO